package cc.openhome;
import java.util.Scanner;//use import
 
public calss Guess {
  public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int number = (int) (Math.random()*10);
int guess; 

do{
   System.out.print("猜數字（0～9）:");
   guess = scanner.nestInt();
 }while(guess!=number);

System.out println("猜中了...XD);
}
}

